/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import Client.MailClient;
import Common.Message;
import java.awt.Color;
import java.util.List;
import javax.swing.table.DefaultTableModel;
import util.Celda_CheckBox;
import util.Render_CheckBox;




/**
 *
 * @author RC
 */
public class FSession extends javax.swing.JFrame {

    /**
     * Creates new form FSession01
     */
    
    private DefaultTableModel modelo;
    
    private MailClient mailClient;
    
    public String user;

   
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        
        this.user=user;
        label_name.setText(user);
    }

    public MailClient getMailClient() {
        return mailClient;
    }

    public void setMailClient(MailClient mailClient) {
        this.mailClient = mailClient;
    }
    
    
    
    
            
    public FSession() {
        initComponents();        
        
        jTable1.getColumnModel().getColumn(0).setCellEditor(new Celda_CheckBox());
        
        jTable1.getColumnModel().getColumn(1).setCellEditor(new Celda_CheckBox());
        

        
        jTable1.getColumnModel().getColumn(0).setCellRenderer(new Render_CheckBox());
        
        jTable1.getColumnModel().getColumn(1).setCellRenderer(new Render_CheckBox());
                          
               
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        label_user = new javax.swing.JLabel();
        label_name = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        label_starred = new javax.swing.JLabel();
        label_import = new javax.swing.JLabel();
        label_drafts = new javax.swing.JLabel();
        label_new = new javax.swing.JLabel();
        label_inbox = new javax.swing.JLabel();
        label_sent = new javax.swing.JLabel();
        label_trash = new javax.swing.JLabel();
        label_update = new javax.swing.JLabel();
        label_delete = new javax.swing.JLabel();
        label_unread = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel3 = new javax.swing.JPanel();
        label_receiver = new javax.swing.JLabel();
        text_receiver = new javax.swing.JTextField();
        label_subject = new javax.swing.JLabel();
        text_subject = new javax.swing.JTextField();
        label_body = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        area_body = new javax.swing.JTextArea();
        label_send = new javax.swing.JLabel();
        label_cancel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        label_user.setText("User");

        label_name.setText("name user");

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        label_starred.setText("Starred");
        label_starred.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_starredMouseClicked(evt);
            }
        });

        label_import.setText("Important");
        label_import.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_importMouseClicked(evt);
            }
        });

        label_drafts.setText("Drafts");
        label_drafts.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_draftsMouseClicked(evt);
            }
        });

        label_new.setText("New");
        label_new.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_newMouseClicked(evt);
            }
        });

        label_inbox.setText("Inbox");
        label_inbox.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_inboxMouseClicked(evt);
            }
        });

        label_sent.setText("Sent mail");
        label_sent.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_sentMouseClicked(evt);
            }
        });

        label_trash.setText("Trash");
        label_trash.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_trashMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_starred)
                    .addComponent(label_import)
                    .addComponent(label_drafts)
                    .addComponent(label_new)
                    .addComponent(label_inbox)
                    .addComponent(label_sent)
                    .addComponent(label_trash))
                .addContainerGap(42, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(label_new)
                .addGap(18, 18, 18)
                .addComponent(label_inbox)
                .addGap(26, 26, 26)
                .addComponent(label_starred)
                .addGap(31, 31, 31)
                .addComponent(label_import)
                .addGap(35, 35, 35)
                .addComponent(label_sent)
                .addGap(30, 30, 30)
                .addComponent(label_drafts)
                .addGap(33, 33, 33)
                .addComponent(label_trash)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        label_update.setText("Update");

        label_delete.setText("Delete");

        label_unread.setText("Unread");

        jTabbedPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane1StateChanged(evt);
            }
        });

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Selection", "UnRead", "Sender", "Detail"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 686, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap(22, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 654, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 301, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(17, 17, 17)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                    .addGap(18, 18, 18)))
        );

        jTabbedPane1.addTab("Messages", jPanel2);

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        label_receiver.setText("Receiver");

        label_subject.setText("Subject");

        label_body.setText("Body");

        jScrollPane2.setEnabled(false);

        area_body.setColumns(20);
        area_body.setRows(5);
        jScrollPane2.setViewportView(area_body);

        label_send.setText("Send");
        label_send.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_sendMouseClicked(evt);
            }
        });

        label_cancel.setText("Cancel");
        label_cancel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label_cancelMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(label_receiver)
                            .addComponent(label_subject)
                            .addComponent(label_body))
                        .addGap(34, 34, 34)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(text_receiver)
                            .addComponent(text_subject)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(159, 159, 159)
                        .addComponent(label_send)
                        .addGap(178, 178, 178)
                        .addComponent(label_cancel)))
                .addContainerGap(49, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_receiver)
                    .addComponent(text_receiver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_subject)
                    .addComponent(text_subject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(35, 35, 35)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_body)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_send)
                    .addComponent(label_cancel))
                .addGap(20, 20, 20))
        );

        jTabbedPane1.addTab("New", jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(label_user)
                        .addGap(60, 60, 60)
                        .addComponent(label_name))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(label_update)
                                .addGap(40, 40, 40)
                                .addComponent(label_delete)
                                .addGap(33, 33, 33)
                                .addComponent(label_unread))
                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(108, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_user)
                    .addComponent(label_name))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_update)
                    .addComponent(label_delete)
                    .addComponent(label_unread))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jTabbedPane1))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void label_inboxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_inboxMouseClicked
        // TODO add your handling code here:
        
        modelo=(DefaultTableModel) jTable1.getModel();
        
        List<Message> lista=mailClient.listMessages();
                
        
        for(int i=0;i<modelo.getRowCount();i++)
        {    
            modelo.removeRow(i);
        }
        for(int i=0;i<lista.size();i++)
        {                        
            
          Message message=lista.get(i);
            
         
               Object[] rowData={false,true,message.getComunication().getSender(),message.getDetail().emailDetail.subject+":"+message.getDetail().emailDetail.body};
            
               modelo.addRow(rowData);
         
        
        }
        
       jTable1.setModel(modelo);
        
       label_inbox.setForeground(Color.red);
       label_new.setForeground(Color.black);
       label_starred.setForeground(Color.black);
       label_import.setForeground(Color.black);
       label_drafts.setForeground(Color.black);
       label_sent.setForeground(Color.black);
       label_trash.setForeground(Color.black);
       jTabbedPane1.setSelectedIndex(0);
        
        
    }//GEN-LAST:event_label_inboxMouseClicked

    private void label_newMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_newMouseClicked
        // TODO add your handling code here:
        
        jTabbedPane1.setSelectedIndex(1);

        label_inbox.setForeground(Color.black);
        label_new.setForeground(Color.red);
        label_starred.setForeground(Color.black);
        label_import.setForeground(Color.black);
        label_drafts.setForeground(Color.black);
        label_sent.setForeground(Color.black);
        label_trash.setForeground(Color.black);
        

    }//GEN-LAST:event_label_newMouseClicked

    private void label_starredMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_starredMouseClicked
        // TODO add your handling code here:

        label_inbox.setForeground(Color.black);
        label_new.setForeground(Color.black);
        label_starred.setForeground(Color.red);
        label_import.setForeground(Color.black);
        label_drafts.setForeground(Color.black);
        label_sent.setForeground(Color.black);
        jTabbedPane1.setSelectedIndex(0);
    }//GEN-LAST:event_label_starredMouseClicked

    private void label_importMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_importMouseClicked
        // TODO add your handling code here:

        label_inbox.setForeground(Color.black);
        label_new.setForeground(Color.black);
        label_starred.setForeground(Color.black);
        label_import.setForeground(Color.red);
        label_drafts.setForeground(Color.black);
        label_sent.setForeground(Color.black);
        jTabbedPane1.setSelectedIndex(0);

    }//GEN-LAST:event_label_importMouseClicked

    private void label_draftsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_draftsMouseClicked
        // TODO add your handling code here:
        
       label_inbox.setForeground(Color.black);
       label_new.setForeground(Color.black);
       label_starred.setForeground(Color.black);
       label_import.setForeground(Color.black);
       label_drafts.setForeground(Color.red);
       label_sent.setForeground(Color.black);
       label_trash.setForeground(Color.black);
        jTabbedPane1.setSelectedIndex(0);
    }//GEN-LAST:event_label_draftsMouseClicked

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
        
        
    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void label_sentMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_sentMouseClicked
        // TODO add your handling code here:
        
       label_inbox.setForeground(Color.black);
       label_new.setForeground(Color.black);
       label_starred.setForeground(Color.black);
       label_import.setForeground(Color.black);
       label_drafts.setForeground(Color.black);
       label_sent.setForeground(Color.red);
       label_trash.setForeground(Color.black);                                    
       jTabbedPane1.setSelectedIndex(0);
       
       
        modelo=(DefaultTableModel) jTable1.getModel();
        
        List<Message> lista=mailClient.listMessages();
                
        
        for(int i=0;i<lista.size();i++)
        {                        
            
          Message message=lista.get(i);
            
           if(message.getDetail().emailStatusDetail.isSentMessage())
           {
               Object[] rowData={false,false,false,message.getComunication().getSender(),message.getDetail().emailDetail.subject+":"+message.getDetail().emailDetail.body};
            
               modelo.addRow(rowData);
           }
        
        }
        
    }//GEN-LAST:event_label_sentMouseClicked

    private void label_cancelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_cancelMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_label_cancelMouseClicked

    private void label_trashMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_trashMouseClicked
        // TODO add your handling code here:
        
        
 modelo=(DefaultTableModel) jTable1.getModel();
        
        List<Message> lista=mailClient.listMessages();
                
        
        for(int i=0;i<lista.size();i++)
        {                        
            
          Message message=lista.get(i);
            
           if(message.getDetail().emailStatusDetail.isDeletedMessage())
           {
               Object[] rowData={false,false,false,message.getComunication().getSender(),message.getDetail().emailDetail.subject+":"+message.getDetail().emailDetail.body};
            
               modelo.addRow(rowData);
           }
        
        }
        
       label_inbox.setForeground(Color.black);
       label_new.setForeground(Color.black);
       label_starred.setForeground(Color.black);
       label_import.setForeground(Color.black);
       label_drafts.setForeground(Color.black);
       label_sent.setForeground(Color.black);
       label_trash.setForeground(Color.red);
       jTabbedPane1.setSelectedIndex(0);
        
    }//GEN-LAST:event_label_trashMouseClicked

    private void label_sendMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_sendMouseClicked
        // TODO add your handling code here:
       
        Message message=new Message(user,text_receiver.getText(), text_subject.getText(), area_body.getText());
        
        mailClient.sendMessage(message);
        
       label_inbox.setForeground(Color.red);
       label_new.setForeground(Color.black);
       label_starred.setForeground(Color.black);
       label_import.setForeground(Color.black);
       label_drafts.setForeground(Color.black);
       label_sent.setForeground(Color.black);
       label_trash.setForeground(Color.black);
       
       jTabbedPane1.setSelectedIndex(0);
       
       label_inboxMouseClicked(evt);
       
    }//GEN-LAST:event_label_sendMouseClicked

    
    
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FSession.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FSession.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FSession.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FSession.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
  

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new FSession().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea area_body;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel label_body;
    private javax.swing.JLabel label_cancel;
    private javax.swing.JLabel label_delete;
    private javax.swing.JLabel label_drafts;
    private javax.swing.JLabel label_import;
    private javax.swing.JLabel label_inbox;
    private javax.swing.JLabel label_name;
    private javax.swing.JLabel label_new;
    private javax.swing.JLabel label_receiver;
    private javax.swing.JLabel label_send;
    private javax.swing.JLabel label_sent;
    private javax.swing.JLabel label_starred;
    private javax.swing.JLabel label_subject;
    private javax.swing.JLabel label_trash;
    private javax.swing.JLabel label_unread;
    private javax.swing.JLabel label_update;
    private javax.swing.JLabel label_user;
    private javax.swing.JTextField text_receiver;
    private javax.swing.JTextField text_subject;
    // End of variables declaration//GEN-END:variables
}
